package com.wy.about_attributes.demo1;

/**
 * @author 美女
 * @date 2022/04/20 09:30
 **/
public class Main1 {
    static class MyThread extends Thread{
        @Override
        public void run() {
            System.out.println(this.getId());
        }
    }
    public static void main(String[] args) {
        Thread thread=Thread.currentThread();//当前线程
        System.out.println(thread.getId());
        MyThread t1=new MyThread();
        t1.start();
        MyThread t2=new MyThread();
        t2.start();
        MyThread t3=new MyThread();
        t3.start();
    }
}
